package com.teach.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.teach.food.entity.FoodMerchant;

public interface FoodMerchantMapper {
    int deleteByPrimaryKey(Integer foodMerchantId);

    int insert(FoodMerchant record);

    int insertSelective(FoodMerchant record);

    FoodMerchant selectByPrimaryKey(Integer foodMerchantId);
    
    FoodMerchant selectByName(String UserName);

    int updateByPrimaryKeySelective(FoodMerchant record);

    int updateByPrimaryKey(FoodMerchant record);
    
    @Select("select a.*,b.USER_IMG FROM food_merchant as a join user_info as b where a.food_merchent_user_name=b.USER_NAME")
    List<FoodMerchant> selectAll();
}